<?php


namespace App\Http\Controllers\OpenShop\Feishu;


use App\Http\Controllers\BaseController;
use App\Service\OpenShop\Feishu\BaseService;

class FeishuController extends BaseController
{
    public function getAppAccessToken()
    {
        $token = BaseService::getAppAccessToken();
        return $this->success(['token' => $token]);
    }

    public function getTenantAccToken()
    {
        $token = BaseService::getTenantAccToken();
        return $this->success(['token' => $token]);
    }

    public function getTicket()
    {
        $ticket = BaseService::getTicket();
        return $this->success(['ticket' => $ticket]);
    }
}